/*
 * @Author: 观星 12334214+zfb12345@user.noreply.gitee.com
 * @Date: 2023-06-30 20:40:26
 * @LastEditors: 观星 12334214+zfb12345@user.noreply.gitee.com
 * @LastEditTime: 2023-06-30 22:48:54
 * @FilePath: \vueOneee:\vscodefile\vue3\my-graduation-project-admin-vue\vue.config.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
const {defineConfig} = require('@vue/cli-service')
module.exports = defineConfig({
    transpileDependencies: true,
    lintOnSave: false,
    devServer: {
        proxy: {
            [process.env.VUE_APP_BASE_API]: {
                //请求转发
                target: process.env.VUE_APP_BASE_TARGET,
                ws: true,//开启websocket代理
                //转发时将前缀"/api"去掉
                pathRewrite: {['^' + process.env.VUE_APP_BASE_API]: ""}
            },
        }
    },
    pages: {
        index: {
            entry: 'src/main.js',
            title: "轻松购后台系统"
        }
    }
})
